package com.vincent.sciinfo.service;

import com.github.pagehelper.PageInfo;
import com.vincent.sciinfo.interceptor.FeignPassToken;
import com.vincent.sciinfo.pojo.Paper;
import com.vincent.sciinfo.pojo.TSMResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-paper", configuration = FeignPassToken.class)
public interface PaperService {

    @RequestMapping("/paper/show_paper")
    PageInfo showPaper(@RequestParam("Id") String Id, @RequestParam("ope") int ope, @RequestParam(value = "pn", defaultValue = "1") int pn, @RequestParam(value = "pageSize") int pageSize);

    @RequestMapping("/paper/add_paper")
    int insertPaper(@RequestBody(required = false) Paper paper);
}
